package cn.fr4nk.crawler.proxy;

import java.util.List;

public interface ProxyPool {

	void add(String prefix, Proxy proxy)throws IllegalArgumentException;
	void addList(String prefix, List<Proxy> proxy) throws IllegalArgumentException;
	void add(Proxy proxy) throws IllegalArgumentException;

	void addList(List<Proxy> proxy) throws IllegalArgumentException;

	Proxy get();
	Proxy get(String prefix);

	void increaseProxyFails(Proxy proxy) throws IllegalArgumentException;

	void remove(Proxy proxy) throws IllegalArgumentException;

	void remove(String ip, int port) throws IllegalArgumentException;

	void update(Proxy proxy) throws IllegalArgumentException;

}
